{% extends 'home.html' %}

{% block content %}
    <a href="{% url 'add2' %}" class="btn btn-success">遗漏结清用户补充</a>
    <a href="" class="btn btn-warning">账单结清表</a>
    <table class="table table-hover table-bordered table-striped">
    <thead>
        <tr>
            <th>序号</th>
            <th>还款人</th>
            <th>还款日期</th>
            <th>总还款金额</th>
            <th>总欠款金额</th>
            <th>地址</th>
            <th>电话</th>
            <th>备注</th>
        </tr>
    </thead>
    <tbody>
        {% for acbook_obj in book_queryset %}
            <tr>
                <td>{{ acbook_obj.pk }}</td>
                <td>{{ acbook_obj.name }}</td>
                <td>{{ acbook_obj.register_time }}</td>
                <td>{{ acbook_obj.add_money }}</td>
                <td>{{ acbook_obj.sum_money }}</td>
                <td>{{ acbook_obj.path }}</td>
                <td>{{ acbook_obj.telephone }}</td>
                <td>{{ acbook_obj.ps }}</td>
                <td>
                    <a href="{% url 'edit2' acbook_obj.pk %}" class="btn btn-primary btn-sm">结清信息手动修改</a>
                    <a href="{% url 'delete2' acbook_obj.pk %}" class="btn btn-danger btn-sm">删除</a>
                </td>
            </tr>

        {% endfor %}

    </tbody>
</table>
{% endblock %}